<div>

    <div class="ibox ">
        <div class="ibox-title">
            <h5>查询条件</h5>
            <div class="ibox-tools" style="top:10px;">
            </div>
        </div>
        <div class="ibox-content">
            <div class="row">
                <div class="col-sm-2">
                    <div class="form-group">
                        <input type="text" placeholder="请输入类别名称" v-model="housekeepingTypeInfo.conditions.hktName"
                            class=" form-control">
                    </div>
                </div>
                <div class="col-sm-2">
                    <select class="custom-select" v-model="housekeepingTypeInfo.conditions.isShow">
                        <option selected disabled value="">请选择是否展示</option>
                        <option v-for="(item,index) in housekeepingTypeInfo.isShows" :value="item.statusCd">
                            {{item.name}}
                        </option>
                    </select>
                </div>
                <div class="col-sm-2">
                    <select class="custom-select" v-model="housekeepingTypeInfo.conditions.ispublic">
                        <option selected disabled value="">是否公共</option>
                        <option value="Y">公共类</option>
                        <option value="N">自定义</option>
                    </select>
                </div>
                <div class="col-sm-2">
                    <button type="button" class="btn btn-primary btn-sm" v-on:click="_queryHousekeepingTypeMethod()">
                        <i class="fa fa-search"></i> 查询
                    </button>
                    <button type="button" class="btn btn-primary btn-sm" v-on:click="_resetHousekeepingTypeMethod()">
                        <i class="fa fa-repeat"></i> 重置
                    </button>
                </div>
            </div>

        </div>
    </div>

    <div class="ibox">
        <div class="ibox-title">
            <h5>家政类型</h5>
            <div class="ibox-tools" style="top:10px;">
                <button type="button" class="btn btn-primary btn-sm" v-on:click="_openAddHousekeepingTypeModal()">
                    <i class="fa fa-plus"></i>添加
                </button>
            </div>
        </div>
        <div class="ibox-content">
            <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                <thead>
                    <tr>
                        <th class="text-center">logo</th>
                        <th class="text-center">类别名称</th>
                        <th class="text-center">服务描述</th>
                        <th class="text-center">标签</th>
                        <th class="text-center">排序</th>
                        <th class="text-center">是否显示</th>
                        <th class="text-center">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <tr v-for="housekeepingType in housekeepingTypeInfo.housekeepingTypes">
                        <td class="text-center">
                            <img style="width: 60px; height: 60px; border-radius: 5px;"
                                v-bind:src="housekeepingType.hktIcon">
                        </td>
                        <td class="text-center">{{housekeepingType.hktName}}</td>
                        <td class="text-center">{{housekeepingType.hktDesc}}</td>
                        <td class="text-center">{{housekeepingType.label}}</td>
                        <td class="text-center">{{housekeepingType.seq}}</td>
                        <td class="text-center">{{housekeepingType.isShow == 'Y'?'是':'否'}}</td>
                        <td class="text-center" v-if="housekeepingType.shopId != '9999'">
                            <div class="btn-group">
                                <button class="btn-white btn btn-xs"
                                    v-on:click="_openEditHousekeepingTypeModel(housekeepingType)">修改
                                </button>
                            </div>
                            <div class="btn-group">
                                <button class="btn-white btn btn-xs"
                                    v-on:click="_openDeleteHousekeepingTypeModel(housekeepingType)">删除
                                </button>
                            </div>
                        </td>
                        <td class="text-center" v-else>
                            <div class="btn-group">
                                <button class="btn-white btn btn-xs" disabled="disabled">公共类别</button>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
            <!-- 分页 -->
            <vc:create path="frame/pagination"></vc:create>
        </div>

    </div>
    <vc:create path="housekeeping/addHousekeepingType" ></vc:create>
    <vc:create path="housekeeping/editHousekeepingType"></vc:create>
    <vc:create path="housekeeping/deleteHousekeepingType"></vc:create>
</div>